import React, { Component } from 'react'
import { BrowserRouter, Route, Switch } from 'react-router-dom'
import Login from './views/Login'
import Admin from './views/Admin'
import './App.css'

export default class App extends Component {
    render() {
        return (
            <BrowserRouter>
                <Switch>
                    <Route path="/login" exact component={Login} />
                    <Route path="/" component={Admin} />
                </Switch>
            </BrowserRouter>
        )
    }
}
